package com.tourism.dao;

import com.tourism.entity.HotelOrder;
import com.tourism.entity.HotelOrderQuery;
import com.tourism.entity.OrderPayInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description 酒店订单dao
 * @Author z
 * @Date 2021-04-18 17:00
 */
@Mapper
public interface HotelOrderDao {
    /**
     * 新增酒店订单
     *
     * @param hotelOrder
     * @return
     */
    boolean addHotelOrder(HotelOrder hotelOrder);

    /**
     * 根据id查找酒店订单
     *
     * @param id
     * @return
     */
    HotelOrder getHotelOrderById(Long id);



    /**
     * 获取酒店订单列表
     *
     * @param query
     * @return
     */
    List<HotelOrder> getHotelOrderList(HotelOrderQuery query);

    /**
     * 更新支付状态
     *
     * @param orderPayInfo
     * @return
     */
    boolean updateOrderPayInfo(OrderPayInfo orderPayInfo);

    /**
     * 取消酒店订单
     *
     * @param id
     * @return
     */
    boolean deleteHotelOrderById(Long id);


}
